<?php
include_once 'connect.php';
$id = $_GET['id'];
$text = $_GET['text'];
$QQ = $_GET['QQ'];
if (is_numeric($id)){
    $sql = "delete from leaving where id = $id";
    $result = mysqli_query($connect,$sql);
    if ($result){
        echo "<script>alert('删除内容成功');location.href = 'leavSet.php';</script>";
    }else{
        echo "<script>alert('删除内容失败)';history.back();</script>";
    }
}else{
    echo "<script>alert('参数错误');history.back();</script>";
}